core: Silence gcc -Wall compiler warnings
authorColin Walters <walters@verbum.org>
Mon, 7 Nov 2011 17:30:32 +0000 (12:30 -0500)
committerColin Walters <walters@verbum.org>
Mon, 7 Nov 2011 17:30:32 +0000 (12:30 -0500)
libostree/ostree-core.c
libostree/ostree-repo.c
osbuild/ob-builtin-buildone.c
osbuild/osbuild-raw-makeinstall.c
ostree/ot-builtin-checkout.c
ostree/ot-builtin-rev-parse.c

index abd2d16d079901be68cd24d857bfe71f956eb0f5..a54f62859fab69b9bfa1f4557487836a133ead54 100644 (file)
@@ -646,8 +646,7 @@ unpack_file (const char   *path,
   guint32 metadata_len;
   guint32 version, uid, gid, mode;
   guint64 content_len;
-  gsize bytes_read, bytes_written;
-  int temp_fd = -1;
+  gsize bytes_read;
 
   file = ot_util_new_file_for_path (path);
 
index 703dc881d967f885f4814619a6ce2d089ee5ed88..97c9f42c1a9503216668860b27655c6ddb5756c0 100644 (file)
@@ -936,7 +936,6 @@ ostree_repo_store_packfile (OstreeRepo       *self,
   gboolean ret = FALSE;
   GString *tempfile_path = NULL;
   GChecksum *checksum = NULL;
-  struct stat stbuf;
   gboolean did_exist;
 
   tempfile_path = g_string_new (priv->path);
index d2da5e9064ac2902ddd7c1dccf457788c512fbe5..be1630001f57fb1d11428bcbc28b9b80df6bd54e 100644 (file)
@@ -46,6 +46,9 @@ static GOptionEntry options[] = {
   { NULL }
 };
 
+static char *
+get_tmpdir (void) G_GNUC_UNUSED;
+
 static char *
 get_tmpdir (void)
 {
@@ -74,6 +77,11 @@ get_tmpdir (void)
   return ret;
 }
 
+static gboolean
+open_log (const char *name, 
+          GOutputStream **out_log,
+          GError **error) G_GNUC_UNUSED;
+
 static gboolean
 open_log (const char *name, 
           GOutputStream **out_log,
@@ -108,7 +116,6 @@ osbuild_builtin_buildone (int argc, char **argv, const char *prefix, GError **er
 {
   GOptionContext *context;
   gboolean ret = FALSE;
-  char *tmpdir;
 
   context = g_option_context_new ("- Build current directory");
   g_option_context_add_main_entries (context, options, NULL);
index 49013ed8fc4c564c659279854717e5ccb0a24a2e..63e043f0e975fb34d04772022730d3605697c792 100644 (file)
@@ -129,9 +129,7 @@ main (int    argc,
   GPtrArray *make_args;
   GPtrArray *makeinstall_args;
   GPtrArray *args;
-  int i;
   char **subprocess_env;
-  GError *error = NULL;
 
   g_type_init ();
 
@@ -150,7 +148,7 @@ main (int    argc,
       const char *autogen;
       char **autogen_env;
       
-      autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh");
+      autogen = find_first_file (G_FILE_TEST_IS_EXECUTABLE, "./autogen", "./autogen.sh", NULL);
       if (!autogen)
         ot_util_fatal_literal ("No executable configure or autogen script found"); 
 
index ae17143b655b76b7bab9b3d44c7a187999cad5a7..8a80270e6dcaf0f9121a15c814dd67551fd93add 100644 (file)
@@ -40,7 +40,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *repo_path, GError **
   const char *commit;
   const char *destination;
   GFile *destf = NULL;
-  int i;
 
   context = g_option_context_new ("COMMIT DESTINATION - Check out a commit into a filesystem tree");
   g_option_context_add_main_entries (context, options, NULL);
index 9ea172dddb6c18d1f4a45f455917bdc21529633d..d8787760a8389e785d850000530d56ad4baaf7f5 100644 (file)
@@ -26,8 +26,6 @@
 
 #include <glib/gi18n.h>
 
-static char *repo_path;
-
 static GOptionEntry options[] = {
   { NULL }
 };